コード例 #1
0
ファイル: Player.cs プロジェクト: ProCompTEAM/Game
        public Player(string token, string name, level.Level level, string address = "0.0.0.0")
        {
            Token = token;
            Name  = name;

            Connection = new Session(address);

            CurrentChat = new Chat();

            Inventory = new inventory.Inventory(128, Name);

            if (Server.Properties.GetProperty("inventory-kit") == Config.SWITCH_ON)
            {
                Inventory.SetDevelopmentKit();
            }

            if (!Action(PlayerActionEvent.Actions.Born))
            {
                Close();
            }

            CurrentChat.SendMessage(Strings.From("player.joinmsg") + Server.GetFullAddress());

            Level = level;
        }
コード例 #2
0
 public LevelLoadedEvent(level.Level level)
 {
     LoadedLevel = level;
 }