Exemple #1
0
 private void SetLoadedPawn(PawnData pawnData)
 {
     loadedPawnData = pawnData;
     nameParameter = null;
     loadedPawnTreeRoot = CreatePawnTreeCategory(templatePawnRoot);
 }
Exemple #2
0
        private PawnTreeParameter CreatePawnTreeParameter(PawnTemplateParameter templateParameter)
        {
            PawnTreeParameter ret = templateParameter.CreateTreeParameter();
            ret.@PawnParameter = loadedPawnData.GetOrAddParameter(templateParameter.Key);

            if (nameParameter == null)
            {
                nameParameter = ret as PawnTreeParameterName;
            }

            return ret;
        }