コード例 #1
0
    public static SymAgent Create(string specie, VectorCreature vector, float phase = 0)
    {
        SymAgent sym = new SymAgent(specie, vector, phase);

        if (!All.ContainsKey(specie))
        {
            All[specie] = new List <SymAgent>();
        }
        All[specie].Add(sym);
        return(sym);
    }
コード例 #2
0
 private SymAgent(string species, VectorCreature vector, float phase = 0)
 {
     this.vector   = vector;
     this.species  = species;
     this.lifetime = phase;
 }