Example #1
0
    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);
    }
Example #2
0
    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);
    }
Example #3
0
    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);
    }
Example #4
0
    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);
    }
Example #5
0
    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);
    }