예제 #1
0
        public static NetworkData NoonEnd(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src = src;
            dat.cmd = NET_COMMAND.NOON_END;
            return(dat);
        }
예제 #2
0
        public static NetworkData NightNo(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.fyes = false;
            dat.cmd  = NET_COMMAND.NIGHT_ACK;
            return(dat);
        }
예제 #3
0
        public static NetworkData NightVote(int src, int dest)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.cmd  = NET_COMMAND.NIGHT_VOTE;
            return(dat);
        }
예제 #4
0
        public static NetworkData MidnightSelect(int src, int dest, int item)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.item = item;
            dat.cmd  = NET_COMMAND.MIDNIGHT_SELECT;
            return(dat);
        }
예제 #5
0
        public static NetworkData NoonItem(int src, int item)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = GameFactory.getGame().shareData.players.getPlayer(dat.src).net_opp;
            dat.item = item;
            dat.cmd  = NET_COMMAND.NOON_ITEM;
            return(dat);
        }
예제 #6
0
        public static NetworkData NoonRequest(int src, int dest)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            dat.cmd  = NET_COMMAND.NOON_REQUEST;

            return(dat);
        }
예제 #7
0
        public static NetworkData NoonNo(int src)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = GameFactory.getGame().shareData.players.getPlayer(dat.src).net_opp;
            dat.fyes = false;
            dat.cmd  = NET_COMMAND.NOON_ACK;

            return(dat);
        }
예제 #8
0
 public void sync(NetworkData o)
 {
     cmd  = o.cmd;
     src  = o.src;
     dest = o.dest;
     item = o.item;
     fyes = o.fyes;
     for (int i = 0; i < srcItem.Length; i++)
     {
         srcItem[i]  = o.srcItem[i];
         destItem[i] = o.destItem[i];
     }
 }
예제 #9
0
        public static NetworkData MidnightSelectItem(int src, int dest, ITEM[] srcitem, ITEM[] destItem)
        {
            NetworkData dat = new NetworkData();

            dat.src  = src;
            dat.dest = dest;
            for (int i = 0; i < srcitem.Length; i++)
            {
                dat.srcItem[i]  = srcitem[i];
                dat.destItem[i] = destItem[i];
            }
            dat.cmd = NET_COMMAND.MIDNIGHT_SELECT_ITEM;
            return(dat);
        }