public void ReplaceMyFlags(MyFlagsComponent.MyFlags newMyFlags) { var component = CreateComponent <MyFlagsComponent>(GameComponentsLookup.MyFlags); component.myFlags = newMyFlags; ReplaceComponent(GameComponentsLookup.MyFlags, component); }
public Entity AddMyFlags(MyFlagsComponent.MyFlags newMyFlags) { var component = CreateComponent <MyFlagsComponent>(VisualDebuggingComponentIds.MyFlags); component.myFlags = newMyFlags; return(AddComponent(VisualDebuggingComponentIds.MyFlags, component)); }
public void AddMyFlags(MyFlagsComponent.MyFlags newMyFlags) { var index = GameComponentsLookup.MyFlags; var component = CreateComponent <MyFlagsComponent>(index); component.myFlags = newMyFlags; AddComponent(index, component); }
public Entity ReplaceMyFlags(MyFlagsComponent.MyFlags newMyFlags) { var component = CreateComponent <MyFlagsComponent>(VisualDebuggingComponentIds.MyFlags); component.myFlags = newMyFlags; ReplaceComponent(VisualDebuggingComponentIds.MyFlags, component); return(this); }
public void ReplaceMyFlags(MyFlagsComponent.MyFlags newMyFlags) { var index = GameComponentsLookup.MyFlags; var component = (MyFlagsComponent)CreateComponent(index, typeof(MyFlagsComponent)); component.myFlags = newMyFlags; ReplaceComponent(index, component); }