Example #1
0
        public void Load(Decal Source)
        {
            Type     = Source.Type;
            Tex1Path = GetGamedataFile.FixMapsPath(Source.TexPathes[0]);
            Tex2Path = GetGamedataFile.FixMapsPath(Source.TexPathes[1]);

            UpdateMaterial();
        }
        public void Load(Decal Source)
        {
            Type     = Source.Type;
            Tex1Path = Source.TexPathes[0];
            Tex2Path = Source.TexPathes[1];

            UpdateMaterial();
        }
    public override void Register()
    {
        Shared = RegisterShared;        // DecalSettings.GetLoaded;

        Type     = Shared.Type;
        Tex1Path = Shared.Tex1Path;
        Tex2Path = Shared.Tex2Path;
    }
Example #4
0
        public override void Register(HistoryParameter Param)
        {
            parameter = (Param as DecalsSharedValuesHistoryParameter);
            Shared    = parameter.RegisterShared;

            Type     = Shared.Type;
            Tex1Path = Shared.Tex1Path;
            Tex2Path = Shared.Tex2Path;
        }
Example #5
0
 public void Load(BinaryReader Stream)
 {
     int id = Stream.ReadInt32();
     //ID
     Type = (TerrainDecalType)Stream.ReadInt32();
     int TextureCount = Stream.ReadInt32();
     TexPathes = new string[TextureCount];
     for (int i = 0; i <= TextureCount - 1; i++)
     {
         int StrLen = Stream.ReadInt32();
         TexPathes[i] = Stream.ReadString(StrLen);
     }
     Scale = Stream.ReadVector3();
     Position = Stream.ReadVector3();
     Rotation = Stream.ReadVector3();
     CutOffLOD = Stream.ReadSingle();
     NearCutOffLOD = Stream.ReadSingle();
     OwnerArmy = Stream.ReadInt32();
 }
Example #6
0
    public void Load(BinaryReader Stream)
    {
        int id = Stream.ReadInt32();

        if (id > 0)
        {
        }
        //ID
        Type = (TerrainDecalType)Stream.ReadInt32();
        int TextureCount = Stream.ReadInt32();

        TexPathes = new string[TextureCount];
        for (int i = 0; i <= TextureCount - 1; i++)
        {
            int StrLen = Stream.ReadInt32();
            TexPathes[i] = Stream.ReadString(StrLen);
        }
        Scale         = Stream.ReadVector3();
        Position      = Stream.ReadVector3();
        Rotation      = Stream.ReadVector3();
        CutOffLOD     = Stream.ReadSingle();
        NearCutOffLOD = Stream.ReadSingle();
        OwnerArmy     = Stream.ReadInt32();
    }
 public DecalSharedSettings()
 {
     Type     = TerrainDecalType.TYPE_ALBEDO;
     Tex1Path = "";
     Tex2Path = "";
 }