public void ReplacePosition(BigBattle.Vec2 newValue) { var index = ServerComponentsLookup.Position; var component = (BigBattle.PositionComponent)CreateComponent(index, typeof(BigBattle.PositionComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceDirection(BigBattle.Vec2 newValue) { var index = ClientComponentsLookup.Direction; var component = (BigBattle.DirectionComponent)CreateComponent(index, typeof(BigBattle.DirectionComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void ReplaceTargetPos(BigBattle.Vec2 newValue) { var index = ServerComponentsLookup.TargetPos; var component = (BigBattle.Server.TargetPosComponent)CreateComponent(index, typeof(BigBattle.Server.TargetPosComponent)); component.value = newValue; ReplaceComponent(index, component); }
public void AddPosition(BigBattle.Vec2 newValue) { var index = ClientComponentsLookup.Position; var component = (BigBattle.PositionComponent)CreateComponent(index, typeof(BigBattle.PositionComponent)); component.value = newValue; AddComponent(index, component); }
public void AddDirection(BigBattle.Vec2 newValue) { var index = ServerComponentsLookup.Direction; var component = (BigBattle.DirectionComponent)CreateComponent(index, typeof(BigBattle.DirectionComponent)); component.value = newValue; AddComponent(index, component); }