示例#1
0
        public void Dispose()
        {
            GarbageMan.Dispose(this.m_Materials);
            this.m_Materials = null;

            this.ValueExtractor = null;
        }
示例#2
0
 public EntityRelationshipHandler()
 {
     this.ValueExtractor      = new JSONValueExtractor();
     this.m_Relationships     = new NonUniqueDictionary <long, IRelationship>();
     this.m_RelationshipTypes =
         this.Load().ToDictionary(relationship => relationship.Name, relationship => relationship);
 }
示例#3
0
        public Vector2Int(Dictionary data)
        {
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.x = valueExtractor.GetValueFromDictionary <int>(data, "x");
            this.y = valueExtractor.GetValueFromDictionary <int>(data, "y");
        }
示例#4
0
        public WorldInfoHandler(IObjectIconHandler objectIconHandler)
        {
            this.ObjectIcons    = objectIconHandler;
            this.ValueExtractor = new JSONValueExtractor();
            this.WorldTiles     = new NonUniqueDictionary <string, WorldTile>();

            this.WorldInfoDict = this.Load().ToDictionary(info => info.name, info => info);
        }
示例#5
0
        public void Load(Dictionary data)
        {
            GD.PushError("Using the Load of Vector2Int! DOES NOT FUNCTION!");
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.x = valueExtractor.GetValueFromDictionary <int>(data, "x");
            this.y = valueExtractor.GetValueFromDictionary <int>(data, "y");
        }
示例#6
0
        public void Load(Dictionary data)
        {
            JSONValueExtractor valueExtractor = GlobalConstants.GameManager.SettingsManager.ValueExtractor;

            this.m_Tags = new HashSet <string>(
                valueExtractor.GetArrayValuesCollectionFromDictionary <string>(
                    data,
                    "Tags"));

            this.TileName = valueExtractor.GetValueFromDictionary <string>(
                data,
                "TileName");

            this.TileSet = valueExtractor.GetValueFromDictionary <string>(
                data,
                "TileSet");
        }
示例#7
0
 public AbilityHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.Abilities      = this.Load().ToList();
 }
示例#8
0
 public void Dispose()
 {
     this.m_RelationshipTypes = null;
     this.m_Relationships     = null;
     this.ValueExtractor      = null;
 }
示例#9
0
 public VisionProviderHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.VisionTypes    = this.Load().ToDictionary(vision => vision.Name, vision => vision);
 }
示例#10
0
 public GUIManager(Node rootUi)
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.RootUI         = rootUi;
     this.Initialise();
 }
示例#11
0
 public GenderHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.Initialise();
 }
示例#12
0
 public void Dispose()
 {
     this.Genders        = null;
     this.ValueExtractor = null;
 }
示例#13
0
 public MaterialHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.Initialise();
 }
示例#14
0
 public void Dispose()
 {
     this.Abilities      = null;
     this.ValueExtractor = null;
 }
示例#15
0
 public ObjectIconHandler(RNG roller)
 {
     this.Roller         = roller;
     this.ValueExtractor = new JSONValueExtractor();
     this.Load();
 }
示例#16
0
 public NeedHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.m_NeedsMasters = this.Load().ToDictionary(need => need.Name, need => need);
 }
示例#17
0
 public LiveEntityHandler()
 {
     this.ValueExtractor = new JSONValueExtractor();
     this.m_Entities     = new System.Collections.Generic.Dictionary <Guid, IEntity>();
 }