public static void ReadEntityData()
        {
            entityDataManager = new EntityDataManager();

            string[] fileNames = Directory.GetFiles(FormMain.ClassPath, "*.xml");

            foreach (string s in fileNames)
            {
                EntityData entityData = XnaSerializer.Deserialize <EntityData>(s);
                entityDataManager.EntityData.Add(entityData.EntityName, entityData);
            }
        }
        public FormDetails()
        {
            InitializeComponent();

            if (FormDetails.ItemManager == null)
            {
                ItemManager = new ItemDataManager();
            }

            if (FormDetails.EntityDataManager == null)
            {
                EntityDataManager = new EntityDataManager();
            }
            this.FormClosing += new FormClosingEventHandler(FormDetails_FormClosing);
        }
示例#3
0
 private void InitialiseEntityDataManager()
 {
     if( this.entityDataManager == null )
         this.entityDataManager = new EntityDataManager( this.gameType, this.marking, this.force );
 }
示例#4
0
 /**
  * Handle update event data
  *
  * @param entityDataManager the entityDataManager containing entity state information
  * @param gO the Unity GameObject representation of the updated entity
  */
 public abstract void HandleExtra( EntityDataManager entityDataManager, GameObject gO );
示例#5
0
        protected override DataTable GetData()
        {
            var dt = EntityDataManager.Search(oSearchFilter.SearchParameters, SessionVariables.RequestProfile);

            return(dt);
        }