示例#1
0
        private static int AppendWorldStates(RealmPacketOut packet, IWorldSpace space)
        {
            int num = 0;

            if (space.ParentSpace != null)
            {
                num += WorldStateHandler.AppendWorldStates(packet, space.ParentSpace);
            }
            if (space.WorldStates != null)
            {
                num += space.WorldStates.FieldCount;
                packet.Write(space.WorldStates.CompiledState);
            }

            return(num);
        }
示例#2
0
 public static void SendUpdateWorldState(IPacketReceiver rcv, WorldState state)
 {
     WorldStateHandler.SendUpdateWorldState(rcv, state.Key, state.DefaultValue);
 }