public CombatDebugOverlay(Actor self) { healthInfo = self.Info.TraitInfoOrDefault <IHealthInfo>(); coords = Exts.Lazy(self.Trait <BodyOrientation>); debugVis = self.World.WorldActor.TraitOrDefault <DebugVisualizations>(); }
public Enemy(string name, IHealthInfo healthInfo, int attackDamage, int level) { this.Name = name; this.HealthInfo = healthInfo; this.AttackDamage = attackDamage; this.Level = level; }
public Player(IPlayableClass playerClass, IRace race, string name, IInventory inventory, IHealthInfo healthInfo, IGear equippedItems, ILevelInfo levelInfo) { this.Class = playerClass; this.Race = race; this.Name = name; this.Inventory = inventory; this.HealthInfo = healthInfo; this.EquippedItems = equippedItems; this.LevelInfo = levelInfo; }