Example #1
0
        public static CTArtifact Create(string name, string[] manifest)
        {
            CTArtifactType type = (CTArtifactType)Enum.Parse(typeof(CTArtifactType), manifest[0]);
            string         path = manifest[1];
            CTArtifact     ret  = null;

            switch (type)
            {
            case CTArtifactType.TableCT:
            case CTArtifactType.TableFriendly:
            case CTArtifactType.TableRaw:
                ret = new _2da.TableArtifact(type, name, path);
                ret.LoadManifest(manifest);
                break;

            case CTArtifactType.TextFile:
            case CTArtifactType.ScriptSource:
                break;

            case CTArtifactType.Hak:
                ret = new Hak.HakArtifact(name, path);
                ret.LoadManifest(manifest);
                break;

            case CTArtifactType.TLK:
                ret = new Tlk.TlkArtifact(name, path);
                ret.LoadManifest(manifest);
                break;
            }
            return(ret);
        }
Example #2
0
 public HakComponentArtifact(CTArtifactType cTArtifactType, string name, string path)
     : base(cTArtifactType, name, path)
 {
     // TODO: Complete member initialization
     this.cTArtifactType = cTArtifactType;
     this.Name           = name;
     this.Path           = path;
 }
Example #3
0
 protected CTArtifact(CTArtifactType type, string name, string path)
 {
     ArtifactType = type;
     Name         = name;
     Path         = path;
 }
Example #4
0
 public TableArtifact(CTArtifactType type, string name, string path)
     : base(type, name, path)
 {
 }