public int Initialize(List<BaseUnit> VecUnits, Map map) { config = new NetPeerConfiguration("StarKampf"); client = new NetClient(config); client.Start(); client.Connect(host: "127.0.0.1", port: 12345); side = 0; // later somebody need make ini side in moment connecting to the server // later means never // это типа комментарий к комментарию, ну вы поняли да?) outMsg = client.CreateMessage(); unitsManager = new UnitsManager(VecUnits, map); return side; }
public int Initialize(ref List<BaseUnit> VecUnits, Map map) { config = new NetPeerConfiguration("StarKampf"); client = new NetClient(config); client.Start(); client.Connect(host: "127.0.0.1", port: 12345); outMsg = client.CreateMessage(); this.VecUnits = VecUnits; unitsManager = new UnitsManager(ref VecUnits, map); OutComingCommandAboutIni = string.Empty; return side; }
public int Initialize(ref List <BaseUnit> VecUnits, Map map) { config = new NetPeerConfiguration("StarKampf"); client = new NetClient(config); client.Start(); client.Connect(host: "127.0.0.1", port: 12345); outMsg = client.CreateMessage(); this.VecUnits = VecUnits; unitsManager = new UnitsManager(ref VecUnits, map); OutComingCommandAboutIni = string.Empty; return(side); }