Ejemplo n.º 1
0
 public AnimationResourceTemplateInstance(
     string mangedDestinationDir,
     McgType typeName)
 {
     ManagedDestinationDir = mangedDestinationDir;
     TypeName = typeName;
 }
 public PolySegmentTemplateInstance(
     string mangedDestinationDir,
     McgType className,
     string typeName,
     int verifyCount,
     bool isCurved)
 {
     ManagedDestinationDir = mangedDestinationDir;
     ClassName             = className;
     TypeName    = typeName;
     VerifyCount = verifyCount;
     IsCurved    = isCurved;
 }
Ejemplo n.º 3
0
 internal McgArray(
     ResourceModel resourceModel,
     McgType type
     ) : base(resourceModel,
              type.Name,
              type.ManagedName,
              type.UnmanagedDataType,
              type.IsValueType,
              type.NeedsConvert,
              type.IsAlwaysSerializableAsString,
              type.MarshaledSize,
              type.ParseMethod)
 {
 }
Ejemplo n.º 4
0
 internal McgField(string name,
                   string unmanagedName,
                   McgType type,
                   string comment,
                   bool isAnimated,
                   string propertyAlias,
                   bool isReadOnly,
                   bool isManagedOnly,
                   bool isUnmanagedOnly,
                   bool isValidate,
                   bool isNew,
                   string defaultValue,
                   bool isInternal,
                   bool isProtected,
                   bool propertyChangedHook,
                   bool isCommonlySet,
                   string coerceValueCallback,
                   bool serializationVisibility,
                   string typeConverter,
                   bool cachedLocally)
 {
     Name                    = name;
     UnmanagedName           = (unmanagedName != null) ? unmanagedName : name;
     Type                    = type;
     Comment                 = comment;
     IsManagedOnly           = isManagedOnly;
     IsUnmanagedOnly         = isUnmanagedOnly;
     IsAnimated              = isAnimated;
     PropertyAlias           = propertyAlias;
     IsAliased               = (propertyAlias != null) && (propertyAlias.Length > 0);
     IsReadOnly              = isReadOnly;
     IsValidate              = isValidate;
     IsNew                   = isNew;
     Default                 = defaultValue;
     IsInternal              = isInternal;
     IsProtected             = isProtected;
     PropertyChangedHook     = propertyChangedHook;
     IsCommonlySet           = isCommonlySet;
     CoerceValueCallback     = coerceValueCallback;
     SerializationVisibility = serializationVisibility;
     TypeConverter           = typeConverter;
     CachedLocally           = cachedLocally;
     Debug.Assert(!isAnimated || !type.IsFreezable,
                  name + " cannot be both freezable and a value type.");
     Debug.Assert(!isManagedOnly || !isUnmanagedOnly,
                  name + " cannot be both ManagedOnly and UnmanagedOnly");
 }
Ejemplo n.º 5
0
 internal void Initialize(IMcgStructChild[] children, McgEmptyField emptyField, McgStruct extends, McgType collectionType)
 {
     base.Initialize(children, extends);
     _emptyField     = emptyField;
     _collectionType = collectionType;
 }