コード例 #1
0
ファイル: Weapons.cs プロジェクト: Maksims/gh12-server
 public void Process(SocketClient client, DataPacket packet)
 {
     if(client.User != null) {
         UserInput input = new UserInput("shot");
         input["nX"] = packet["nX"];
         input["nY"] = packet["nY"];
         client.User.AddInput(input);
     }
 }
コード例 #2
0
ファイル: Character.cs プロジェクト: Maksims/gh12-server
 public void Process(SocketClient client, DataPacket packet)
 {
     if (client.User != null) {
         UserInput input = new UserInput("charMove");
         input["d"] = ((FieldData)packet["d"]).Value;
         client.User.AddInput(input);
         //client.User.Char.Target =
     }
     /*if(client.User != null) {
         client.User.Name = packet["n"].ToString();
     }*/
 }
コード例 #3
0
ファイル: User.cs プロジェクト: Maksims/gh12-server
 public void AddInput(UserInput input)
 {
     this.input.Enqueue(input);
 }