public EntityTeam(AtlasGlobal atlas, EntityDelegate teamDelegate) : base(atlas) { _delegate = teamDelegate; Color = Color.White; _team = new List<Entity>(); _teamArray = new Entity[0]; }
public Button(int texture_id, Services.PostCategory category) { texture_id_ = texture_id; Texture2D tex = Locator.getTextureManager().getTexture(texture_id); size_ = new Vector2(buttonSize); category_ = category; slot_ = -1; getSource = null; getTarget = null; }
public Button(int texture_id, Services.PostCategory category) { texture_id_ = texture_id; Texture2D tex = Locator.getTextureManager().getTexture(texture_id); size_ = new Vector2(buttonSize); category_ = category; slot_ = -1; getSource = null; getTarget = null; }
private static void ENTITIES_NOT_PLAYER(EntityDelegate e) { int handle = Game.Player.Character.Handle; foreach (Entity enitity in World.GetAllEntities()) { if (enitity.Handle != handle) { e(enitity); } } }
public bool Swappable(EntityTeam team, EntityDelegate entityDelegate) { return true; }
public virtual bool TrySetDelegate(EntityDelegate entityDelegate) { if (_delegate == null) { _delegate = entityDelegate; return true; } else if (_delegate.Swappable(this, entityDelegate)) { _delegate = entityDelegate; return true; } return false; }
public void SelectorForEach <T1, T2, T3, T4>(SelectorDelegate selector, EntityDelegate <T1, T2, T3, T4> action) { SelectorForEachGeneric(selector, action.Method, action.Target); }
public void SelectorSingle <T1, T2, T3, T4>(GameObject go, SelectorDelegate selector, EntityDelegate <T1, T2, T3, T4> action) { SelectorSingleGeneric(go, selector, action.Method, action.Target); }
public void Single <T1, T2, T3, T4>(GameObject go, EntityDelegate <T1, T2, T3, T4> action, bool isChild = true) { SingleGeneric(go, action.Method, action.Target, action.Method.GetParameters(), isChild); }
public void ForEach <T1, T2, T3, T4, T5>(EntityDelegate <T1, T2, T3, T4, T5> action) { ForEachGeneric(action.Method, action.Target, action.Method.GetParameters()); }
public void AddTeam(string key, EntityDelegate teamDelegate) { var team = new EntityTeam(Atlas, teamDelegate); _teams.Add(key, team); team.Lock(_key); }