public void AddWithEntity(T item) { if (EntityCtrl.AddEntity(item)) { base.Add(item); } }
public bool RemoveWithEntity(T item) { if (EntityCtrl.DeleteEntity(item)) { return(base.Remove(item)); } return(false); }
public void CreateSubmit() { if (!IsCreatingMode || _tInstance == null) { return; } EntityCtrl.AddEntity(_tInstance); _tInstance = null; IsCreatingMode = false; }
public void ClearGrid(bool destroy = false) { if (isEmpty) { return; } var e = entity; entity = null; if (destroy) { e.Destroy(); } }
public void RefreshData() { base.Clear(); var entities = EntityCtrl.GetEntitys(); if (entities != null && entities.Count > 0) { foreach (var entity in entities) { if (_filter(entity)) { base.Add(entity); } } } }
public GameManager() { _gameState = EGameStatus.None; _entityCtrl = new EntityCtrl(); }
public bool UpdateEntity() { return(EntityCtrl.UpDataEntity()); }