コード例 #1
0
    public void SendConstructBuildingRequest(BuildingIdentity id, TilePosition position, int builderNO)
    {
        ConstructBuildingRequestParameter request = new ConstructBuildingRequestParameter();

        request.BuilderBuildingNO = builderNO;
        request.BuildingType      = id.buildingType;
        request.BuildingNO        = id.buildingNO;
        request.PositionColumn    = (byte)position.Column;
        request.PositionRow       = (byte)position.Row;
        request.OperateTick       = LogicTimer.Instance.GetServerTick();
        CommunicationUtility.Instance.ConstructBuilding(request);
    }
コード例 #2
0
 public void ConstructBuilding(ConstructBuildingRequestParameter parameter)
 {
     this.CommunicateWithServer(parameter.GetHashtableFromParameter(), ClientCommandConsts.BUILDING_BUILD_COMMAND);
 }