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); }
public static void SendUpdateWorldState(IPacketReceiver rcv, WorldState state) { WorldStateHandler.SendUpdateWorldState(rcv, state.Key, state.DefaultValue); }