Coder Social home page Coder Social logo

jonathan-robertson / lcb-remote Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.27 MB

7 Days to Die mod: Add admin tools and a craftable remote control to turn on/off land claim block boundaries.

License: MIT License

C# 100.00%
7-days-to-die 7daystodie mod modlet remote-control admin-tools

lcb-remote's People

Contributors

jonathan-robertson avatar

Watchers

 avatar  avatar

lcb-remote's Issues

๐ŸŽ›๏ธ Add lcb-remote item

  • item must be reusable
  • item must add buff on use
  • should item reapply buff or reject usage if buff is already active?

breakerBoxBroken

Image

decoLaptop

Image

fusebox

Image

pushButtonSwitch02

Image

powerSwitch02

Image

๐ŸŒ Add console command to Activate/Deactivate all land claims for a given player

It seems this would be possible due to how the following code works.

From what I gather, it's caching a modified flag for any offline chunks.

	protected virtual void setModified()
	{
		// ...
		if (SingletonMonoBehaviour<ConnectionManager>.Instance.IsServer)
		{
			this.SetChunkModified();
			SingletonMonoBehaviour<ConnectionManager>.Instance.SendPackage(NetPackageManager.GetPackage<NetPackageTileEntity>().Setup(this, TileEntity.StreamModeWrite.ToClient, byte.MaxValue), true, -1, -1, -1, -1);
		}
		// ...
	}
	public void SetChunkModified()
	{
		if (SingletonMonoBehaviour<ConnectionManager>.Instance.IsServer && this.chunk != null)
		{
			this.chunk.isModified = true;
		}
	}

โœ… Add console command activate

Activate lcb area frame for the lcb you are within range of (only the lcb owner will see it)

  • if off, activating should cause green frame to appear for owner

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.