| | |
| | | // ------------------------------------------------------------------------------ |
| | | // <autogenerated> |
| | | // This code was generated by a tool. |
| | | // Mono Runtime Version: 2.0.50727.1433 |
| | | // |
| | | // Changes to this file may cause incorrect behavior and will be lost if |
| | | // the code is regenerated. |
| | | // </autogenerated> |
| | | // ------------------------------------------------------------------------------ |
| | | |
| | | namespace TableConfig |
| | | { |
| | | using System; |
| | | using System.Collections.Generic; |
| | | |
| | | public partial class PlayerPropertyConfig : ConfigBase, IConfigPostProcess |
| | | { |
| | | private static Dictionary<int, List<PlayerPropertyConfig>> m_PropCfgs = new Dictionary<int, List<PlayerPropertyConfig>>(); |
| | | |
| | | public void OnConfigParseCompleted() |
| | | { |
| | | List<PlayerPropertyConfig> list = null; |
| | | m_PropCfgs.TryGetValue(type, out list); |
| | | if (list != null) |
| | | { |
| | | list.Add(this); |
| | | } |
| | | else |
| | | { |
| | | list = new List<PlayerPropertyConfig>(); |
| | | list.Add(this); |
| | | m_PropCfgs.Add(type, list); |
| | | } |
| | | } |
| | | |
| | | public static List<PlayerPropertyConfig> GetPropByType(int type) |
| | | { |
| | | List<PlayerPropertyConfig> list = null; |
| | | m_PropCfgs.TryGetValue(type, out list); |
| | | return list; |
| | | } |
| | | } |
| | | } |
| | | // ------------------------------------------------------------------------------
|
| | | // <autogenerated>
|
| | | // This code was generated by a tool.
|
| | | // Mono Runtime Version: 2.0.50727.1433
|
| | | // |
| | | // Changes to this file may cause incorrect behavior and will be lost if |
| | | // the code is regenerated.
|
| | | // </autogenerated>
|
| | | // ------------------------------------------------------------------------------
|
| | |
|
| | | namespace TableConfig
|
| | | {
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | public partial class PlayerPropertyConfig : ConfigBase, IConfigPostProcess
|
| | | {
|
| | | private static Dictionary<int, List<PlayerPropertyConfig>> m_PropCfgs = new Dictionary<int, List<PlayerPropertyConfig>>();
|
| | |
|
| | | public void OnConfigParseCompleted()
|
| | | {
|
| | | List<PlayerPropertyConfig> list = null;
|
| | | m_PropCfgs.TryGetValue(type, out list);
|
| | | if (list != null)
|
| | | {
|
| | | list.Add(this);
|
| | | }
|
| | | else
|
| | | {
|
| | | list = new List<PlayerPropertyConfig>();
|
| | | list.Add(this);
|
| | | m_PropCfgs.Add(type, list);
|
| | | }
|
| | | }
|
| | |
|
| | | public static List<PlayerPropertyConfig> GetPropByType(int type)
|
| | | {
|
| | | List<PlayerPropertyConfig> list = null;
|
| | | m_PropCfgs.TryGetValue(type, out list);
|
| | | return list;
|
| | | }
|
| | | }
|
| | | }
|