Exemple #1
0
    public void ReplaceId(Osnowa.Osnowa.Core.CSharpUtilities.SGuid newId)
    {
        var index     = GameComponentsLookup.Id;
        var component = (Osnowa.Osnowa.Core.ECS.IdComponent)CreateComponent(index, typeof(Osnowa.Osnowa.Core.ECS.IdComponent));

        component.Id = newId;
        ReplaceComponent(index, component);
    }
Exemple #2
0
 public static GameEntity GetEntityWithId(this GameContext context, Osnowa.Osnowa.Core.CSharpUtilities.SGuid Id)
 {
     return(((Entitas.PrimaryEntityIndex <GameEntity, Osnowa.Osnowa.Core.CSharpUtilities.SGuid>)context.GetEntityIndex(Contexts.Id)).GetEntity(Id));
 }