Exemplo n.º 1
0
        public ObjectData(ObjectData data)
            : base(data)
        {
            type = data.type;

            name        = new DynamicString(data.name);
            description = data.description;

            tags = new string[data.tags.Length];
            Array.Copy(data.tags, tags, tags.Length);

            attachmentTypes = new AttachmentType[data.attachmentTypes.Length];
            Array.Copy(data.attachmentTypes, attachmentTypes, attachmentTypes.Length);

            verbs = new VerbReference[data.verbs.Length];
            for (int i = 0; i < verbs.Length; i++)
            {
                verbs[i] = new VerbReference(data.verbs[i]);
            }

            behaviours = new BehaviourReference[data.behaviours.Length];
            for (int i = 0; i < behaviours.Length; i++)
            {
                behaviours[i] = new BehaviourReference(data.behaviours[i]);
            }
        }
Exemplo n.º 2
0
 public DynamicString(DynamicString str)
     : base(str)
 {
 }