예제 #1
0
        public void RemoveLadderObject(LadderObject ladderObject)
        {
            var message = new BattleSceneRemoveLadderObjectMessage();

            message.ladderObj = StreamableFactory.CreateBattleSceneObject(ladderObject);
            _connection.SendMessage(message);
        }
예제 #2
0
        public void AddLadderObject(LadderObject ladderObject)
        {
            var message = new BattleSceneAddLadderObjectMessage();

            message.objData = StreamableFactory.CreateBattleSceneLadderObjData(ladderObject);
            message.view    = ladderObject.CharacterRef.View;
            _connection.SendMessage(message);
        }
예제 #3
0
        public static LadderObjectData CreateBattleSceneLadderObjData(LadderObject ladderObject)
        {
            var ret = new LadderObjectData();

            ret.obj.row   = ladderObject.GridRef.PosRow;
            ret.obj.col   = ladderObject.GridRef.PosCol;
            ret.obj.id    = ladderObject.ID;
            ret.direction = ladderObject.DirectionOnFirstGrid;
            return(ret);
        }