Example #1
0
 void Awake()
 {
     // TODO: have option to select where we would like to get the classRuntime from -- saved game, config, etc.
     // this will be part of the overall serialization scheme with systems.
     if (classConfig != null)
     {
         classRuntime = classConfig.ToRuntime(this);
     }
 }
Example #2
0
 public EnemyRuntime(string saveGameId, List <AbilityRuntime> abilityRuntimes, ClassRuntime classRuntime)
 {
     this.saveGameId      = saveGameId;
     this.abilityRuntimes = abilityRuntimes;
     this.classRuntime    = classRuntime;
 }
Example #3
0
    public ClassRuntime ToRuntime(ClassSystem owner)
    {
        var runtime = new ClassRuntime(owner, this);

        return(runtime);
    }