protected CastTargetContext(FightStatus fightStatus, int playerId, DynamicValueHolderType type, int spellDefinitionId, int level, int instanceId, int expectedTargetCount) : base(fightStatus, playerId, type, level) { this.spellDefinitionId = spellDefinitionId; this.expectedTargetCount = expectedTargetCount; this.instanceId = instanceId; selectedTargetCount = 0; m_targets = new Target[expectedTargetCount]; }
protected DynamicValueFightContext([NotNull] FightStatus fightStatus, int playerId, DynamicValueHolderType type, int level) : base(type, level) { this.fightStatus = fightStatus; this.playerId = playerId; }
public TwoCastTargetContext(FightStatus fightStatus, int playerId, DynamicValueHolderType type, int spellDefinitionId, int level, int instanceId) : base(fightStatus, playerId, type, spellDefinitionId, level, instanceId, 2) { }
protected DynamicValueContext(DynamicValueHolderType type, int level) { this.type = type; this.level = level; }
public MultipleCastTargetContext(FightStatus fightStatus, int playerId, DynamicValueHolderType type, int spellDefinitionId, int level, int instanceId, int expectedTargetCount) : base(fightStatus, playerId, type, spellDefinitionId, level, instanceId, expectedTargetCount) { }
public CastTargetContext CreateCastTargetContext(FightStatus fightStatus, int playerId, DynamicValueHolderType type, int definitionId, int level, int instanceId) { return(new TwoCastTargetContext(fightStatus, playerId, type, definitionId, level, instanceId)); }
public CastTargetContext CreateCastTargetContext(FightStatus fightStatus, int playerId, DynamicValueHolderType type, int definitionId, int level, int instanceId) { int count = m_selectors.Count; return(new MultipleCastTargetContext(fightStatus, playerId, type, definitionId, level, instanceId, count)); }