public void ReadFrom(IDataInputStream stream) { id.ReadFrom(stream); row = stream.ReadInt32(); col = stream.ReadInt32(); stagnate = stream.ReadInt32(); direction = (BattleMapDirection)stream.ReadByte(); }
public void DisplayActableObjectMove(ActableGridObject actable, BattleMapDirection direction, bool stairway) { if (!_isUsing) { return; } var message = new BattleSceneDisplayActableObjectMovingMessage(); message.obj = StreamableFactory.CreateBattleSceneObject(actable); message.direction = direction; message.stairway = stairway; _connection.SendMessage(message); }
public void ReadFrom(IDataInputStream stream) { obj.ReadFrom(stream); obstacle = stream.ReadBoolean(); highland = stream.ReadBoolean(); stagnate = stream.ReadInt32(); direction = (BattleMapDirection)stream.ReadByte(); actable = stream.ReadBoolean(); if (actable) { actableObjData.ReadFrom(stream); } }
public static void WriteBattleMapDirection(IDataOutputStream stream, BattleMapDirection val) { stream.WriteByte((byte)val); }