mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-03 03:48:24 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
24 lines
797 B
C#
24 lines
797 B
C#
namespace Editor.MapEditor.EntityDefinitions;
|
|
|
|
//
|
|
// This is a weird entity, the c++ game entity system finds these by classname
|
|
// and treats them as a point prefab loading the target map as a spawngroup
|
|
//
|
|
|
|
[Library( "skybox_reference" )]
|
|
[HammerEntity]
|
|
[EditorModel( "models/editor/skybox_reference.vmdl" )]
|
|
[Title( "Skybox Reference" ), Category( "Fog & Sky" ), Icon( "photo_camera" )]
|
|
[Global( "3dskybox" )]
|
|
class SkyBoxReferenceEntity : HammerEntityDefinition
|
|
{
|
|
[Property( "targetMapName", Title = "Map Name" ), FGDType( "instance_file" )]
|
|
public string TargetMapName { get; set; }
|
|
|
|
[Property( "fixupNames", Title = "Fixup Entity Names" )]
|
|
public bool FixupNames { get; set; } = false;
|
|
|
|
[Property( "worldGroupID" )]
|
|
public string WorldGroupID { get; set; } = "skyboxWorldGroup0";
|
|
}
|