Exemple #1
0
    public void ReplaceGameItemIndex(Game.CustomVector2 newIndex)
    {
        var index     = GameComponentsLookup.GameItemIndex;
        var component = (Game.ItemIndexComponent)CreateComponent(index, typeof(Game.ItemIndexComponent));

        component.index = newIndex;
        ReplaceComponent(index, component);
    }
Exemple #2
0
 public static System.Collections.Generic.HashSet <GameEntity> GetEntitiesWithGameItemIndex(this GameContext context, Game.CustomVector2 index)
 {
     return(((Entitas.EntityIndex <GameEntity, Game.CustomVector2>)context.GetEntityIndex(Contexts.GameItemIndex)).GetEntities(index));
 }