Second commit

This commit is contained in:
ThomasCharester committed 2026-09-20 15:26:03 +03:00
commit 36840f3ad4
999 files changed
+61364

No files matched your search

@@ -0,0 +1,36 @@
//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024-2026 TinyGoose Ltd., All Rights Reserved.
//
using System;
namespace TinyGoose.Tremble
{
/// <summary>
/// Marks this boolean as being a spawnflags field.
/// You can either provide an explicit bit to use, or omit and let the system guess based on order.
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class SpawnFlagsAttribute : Attribute
{
public SpawnFlagsAttribute(int bit = -1)
{
//NOTE: Change MapBspGetters if this changes!!
m_Bit = bit;
}
private readonly int m_Bit;
public int Bit => m_Bit;
}
/// <summary>
/// Marks this boolean as never being a spawnflags field.
/// Use this is you have the auto-spawnflags flag set for booleans.
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class NoSpawnFlagsAttribute : Attribute
{
//NOTE: Change MapBspGetters if this changes!!
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 0102725e5aa1439cbb30a9675ce4513d
timeCreated: 1705750006
AssetOrigin:
serializedVersion: 1
productId: 277805
packageName: Tremble - Map Importer
packageVersion: 1.11.1
assetPath: Assets/Tremble/Attributes/Fields/SpawnFlagsAttribute.cs
uploadId: 939664
@@ -0,0 +1,39 @@
//
// This file is part of the Tremble package by Tiny Goose.
// Copyright (c) 2024-2026 TinyGoose Ltd., All Rights Reserved.
//
using System;
namespace TinyGoose.Tremble
{
/// <summary>
/// Marks a field as being serialised for maps (even if [SerializeField] is absent)
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class TrembleAttribute : Attribute
{
public TrembleAttribute(string name = null, bool isRotation = false)
{
//NOTE: Change MapBspGetters if this changes!!
m_OverrideName = name;
m_IsRotation = isRotation;
}
private readonly string m_OverrideName;
private readonly bool m_IsRotation;
public string OverrideName => m_OverrideName;
public bool IsRotation => m_IsRotation;
}
/// <summary>
/// Marks a field as NEVER being serialised for maps (even if [SerializeField] is on)
/// </summary>
[AttributeUsage(AttributeTargets.Field)]
public class NoTrembleAttribute : Attribute
{
//NOTE: Change MapBspGetters if this changes!!
}
}
@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 071a562d7c7647a18ebeb57869dfad3a
timeCreated: 1711702937
AssetOrigin:
serializedVersion: 1
productId: 277805
packageName: Tremble - Map Importer
packageVersion: 1.11.1
assetPath: Assets/Tremble/Attributes/Fields/TrembleAttribute.cs
uploadId: 939664