public void ReplacePosition(ExampleContent.VisualDebugging.IntVector2 newValue) { var index = VisualDebugComponentsLookup.Position; var component = (PositionComponent)CreateComponent(index, typeof(PositionComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceVelocity(ExampleContent.VisualDebugging.IntVector2 newValue) { var index = VisualDebugComponentsLookup.Velocity; var component = (VelocityComponent)CreateComponent(index, typeof(VelocityComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void AddVelocity(ExampleContent.VisualDebugging.IntVector2 newValue) { var index = VisualDebugComponentsLookup.Velocity; var component = (VelocityComponent)CreateComponent(index, typeof(VelocityComponent)); #if !ENTITAS_REDUX_NO_IMPL component.value = newValue; #endif AddComponent(index, component); }
public void ReplacePosition(ExampleContent.VisualDebugging.IntVector2 newValue) { var index = VisualDebugComponentsLookup.Position; var component = (PositionComponent)CreateComponent(index, typeof(PositionComponent)); #if !ENTITAS_REDUX_NO_IMPL component.value = newValue; #endif ReplaceComponent(index, component); }
public static System.Collections.Generic.HashSet <VisualDebugEntity> GetColorEntitiesAtPosition(this VisualDebugContext context, ExampleContent.VisualDebugging.IntVector2 pos) { return(((ExampleContent.VisualDebugging.CustomIndexes.ColorPositionEntityIndex)(context.GetEntityIndex(Contexts.ExampleContentVisualDebuggingCustomIndexesColorPositionEntityIndex))).GetColorEntitiesAtPosition(pos)); }