Exemplo n.º 1
0
 public static void ImplementNetEvent <T>(out NetClassRepInstance <T> rep, string name, NetClassMask groupMask, int classVersion) where T : NetEvent, new()
 {
     rep = new NetClassRepInstance <T>(name, (uint)groupMask, NetClassType.NetClassTypeEvent, classVersion);
 }
Exemplo n.º 2
0
        public static void ImplementNetConnection <T>(out NetClassRepInstance <T> rep, out NetConnectionRep connRep, bool canRemoteCreate) where T : BaseObject, new()
        {
            ImplementClass(out rep);

            connRep = new NetConnectionRep(rep, canRemoteCreate);
        }
Exemplo n.º 3
0
 public static void Declare <T>(out NetClassRep rep) where T : BaseObject, new()
 {
     rep = new NetClassRepInstance <T>(typeof(T).Name, 0, NetClassType.NetClassTypeNone, 0);
 }
Exemplo n.º 4
0
 public static void ImplementNetObject <T>(out NetClassRepInstance <T> rep) where T : NetObject, new()
 {
     rep = new NetClassRepInstance <T>(typeof(T).Name, (uint)NetClassMask.NetClassGroupGameMask, NetClassType.NetClassTypeObject, 0);
 }