コード例 #1
0
ファイル: NpcGroup.cs プロジェクト: Wicorel/WicoCalpurnius
 internal NpcGroup(long groupLeaderId, NpcGroupState initialState, Vector3D destination, NpcGroupType groupType, DateTime groupSpawnTime,
                   NpcGroupArrivalObserver arrivalObserver)
 {
     GroupLeaderId   = groupLeaderId;
     this.groupType  = groupType;
     GroupSpawnTime  = groupSpawnTime;
     ArrivalObserver = arrivalObserver;
     GroupState      = initialState;
     Destination     = destination;
 }
コード例 #2
0
        public string NpcgroupInfo(NpcGroupType groupType)
        {
            string str = "";

            if (groupType < 0 || this.groupType == groupType)
            {
                str += "\n Type=" + groupType.ToString() + " State=" + GroupState.ToString();
            }
            return(str);
        }
コード例 #3
0
        public string NpcGroupInfo(NpcGroupType groupType)
        {
            string str = "";

            str += "total # of NPCs=" + npcGroups.Count;
            foreach (var npc in npcGroups)
            {
                str += npc.NpcgroupInfo(groupType);
            }
            return(str);
        }