コード例 #1
0
ファイル: TAScene.cs プロジェクト: dmkamrath/TextAdventureMK2
        public void actorLeft(TAActor leaver)
        {
            actors.Remove(leaver);
            var player = leaver as TAPlayer;

            if (player != null)
            {
                players.Remove(player);
            }
            localBroadcast(leaver.actorName + " has left the scene");
        }
コード例 #2
0
ファイル: TAScene.cs プロジェクト: dmkamrath/TextAdventureMK2
        public void actorEntered(TAActor newActor)
        {
            actors.Add(newActor);
            var player = newActor as TAPlayer;

            if (player != null)
            {
                players.Add(player);
            }
            localBroadcast(newActor.actorName + " has entered the scene");
        }