view datagear/RemoteMessage.cs @ 54:e75e143b92e7

fix Read/Write missing argument and maybe run on Unity
author riono <e165729@ie.u-ryukyu.ac.jp>
date Fri, 14 Jan 2022 20:40:21 +0900
parents 7276e3429c99
children
line wrap: on
line source

using System.Net.Sockets;
using MessagePack;

namespace Christie_net.datagear {
[MessagePackObject]
public class RemoteMessage {
    [Key("type")]
    public int type; // コマンドタイプ
    [Key("fromDmgName")]
    public string fromDmgName; // 送り元のDgmName REPLYの時に使用
    [Key("key")]
    public string key;
    [Key("clazz")]
    public string clazz;

    public RemoteMessage(){} // for messagePack

    public RemoteMessage(int type, string fromDmgName, string key, string clazz) {
        this.type = type;
        this.fromDmgName = fromDmgName;
        this.key = key;
        this.clazz = clazz;
    }
}
}