示例#1
0
        public string ToStruct(LandTableFormat format)
        {
            StringBuilder result = new StringBuilder("{ ");

            result.Append(Bounds.ToStruct());
            result.Append(", ");
            switch (format)
            {
            case LandTableFormat.SA1:
            case LandTableFormat.SADX:
                result.Append(Unknown1.ToCHex());
                result.Append(", ");
                result.Append(Unknown2.ToCHex());
                result.Append(", ");
                result.Append(Model != null ? "&" + Model.Name : "NULL");
                result.Append(", ");
                result.AppendFormat(Unknown3.ToCHex());
                break;

            case LandTableFormat.SA2:
                result.Append(Model != null ? "&" + Model.Name : "NULL");
                result.Append(", ");
                result.Append(Unknown2.ToCHex());
                result.Append(", ");
                result.Append(Unknown3.ToCHex());
                break;
            }
            result.Append(", ");
            result.AppendFormat(Flags.ToCHex());
            result.Append(" }");
            return(result.ToString());
        }
示例#2
0
        public string ToStruct()
        {
            StringBuilder result = new StringBuilder("{ ");

            result.Append(Unknown1.ToCHex());
            result.Append(", ");
            result.Append(Unknown2.ToC());
            result.Append(", ");
            result.Append(Unknown3.ToC());
            result.Append(", ");
            result.Append(Model != null ? "&" + Model.Name : "NULL");
            result.Append(", ");
            result.Append(Animation != null ? "&" + ActionName : "NULL");
            result.Append(", (NJS_TEXLIST *)");
            result.Append(Unknown4.ToCHex());
            result.Append(" }");
            return(result.ToString());
        }