Ejemplo n.º 1
0
        public void SendInit()
        {
            NewPackets.FactionUpdate factionUpdate = new NewPackets.FactionUpdate();
            factionUpdate.credits   = Credits;
            factionUpdate.connected = true;

            Debug.Log("SENDING INIT FOR FACTION " + FactionID);

            GameManager.Send((byte)FactionID, NewPackets.PacketType.InitSelf, factionUpdate.ByteArray(), FactionClient);
        }
Ejemplo n.º 2
0
        public void BroadcastState()
        {
            NewPackets.FactionUpdate factionUpdate = new NewPackets.FactionUpdate();
            factionUpdate.credits   = Credits;
            factionUpdate.connected = true;

            GameManager.Broadcast((byte)FactionID, NewPackets.PacketType.UpdateFaction, factionUpdate.ByteArray());
        }