示例#1
0
        private void onPlayerCreated(Player player)
        {
            PlayerMovement movement = player.movement;

            movement.onRegionUpdated = (PlayerRegionUpdated)Delegate.Combine(movement.onRegionUpdated, new PlayerRegionUpdated(this.onRegionUpdated));
            if (Provider.isServer)
            {
                SteamPlayerID playerID = player.channel.owner.playerID;
                StructureManager.updateActivity(playerID.steamID, player.quests.groupID);
            }
        }
示例#2
0
 private static void updateActivity(CSteamID owner, CSteamID group)
 {
     for (byte b = 0; b < Regions.WORLD_SIZE; b += 1)
     {
         for (byte b2 = 0; b2 < Regions.WORLD_SIZE; b2 += 1)
         {
             StructureRegion region = StructureManager.regions[(int)b, (int)b2];
             StructureManager.updateActivity(region, owner, group);
         }
     }
 }