예제 #1
0
        /// <summary>
        /// Resolves a <see cref="NwFaction"/> from a faction id.
        /// </summary>
        /// <param name="factionId">The id of the faction to resolve.</param>
        /// <returns>The associated <see cref="NwFaction"/> instance. Null if the faction id is invalid.</returns>
        public static NwFaction?FromFactionId(int factionId)
        {
            CNWSFaction faction = FactionManager.GetFaction(factionId);

            return(faction != null ? new NwFaction(faction) : null);
        }
예제 #2
0
 internal NwFaction(CNWSFaction faction)
 {
     this.faction = faction;
 }