public void RemoveLadderObject(LadderObject ladderObject) { var message = new BattleSceneRemoveLadderObjectMessage(); message.ladderObj = StreamableFactory.CreateBattleSceneObject(ladderObject); _connection.SendMessage(message); }
public void AddLadderObject(LadderObject ladderObject) { var message = new BattleSceneAddLadderObjectMessage(); message.objData = StreamableFactory.CreateBattleSceneLadderObjData(ladderObject); message.view = ladderObject.CharacterRef.View; _connection.SendMessage(message); }
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); }