<commit_before>ENT.Type            = "anim"
ENT.Base            = "base_wire_entity"

ENT.PrintName       = "Wire Button"
ENT.Author          = ""
ENT.Contact         = ""
ENT.Purpose         = ""
ENT.Instructions    = ""

ENT.Spawnable       = false
ENT.AdminSpawnable  = false


function ENT:SetOn( bOn )
	self:SetNetworkedBool( "OnOff", bOn, true )
end
function ENT:GetOn()
	return self:GetNetworkedBool( "OnOff" )
end<commit_msg>gmod_wire_button: Use the new Data Tables method for the on/off state.<commit_after>ENT.Type            = "anim"
ENT.Base            = "base_wire_entity"

ENT.PrintName       = "Wire Button"
ENT.Author          = ""
ENT.Contact         = ""
ENT.Purpose         = ""
ENT.Instructions    = ""

ENT.Spawnable       = false
ENT.AdminSpawnable  = false

ENT.Editable = true

function ENT:SetupDataTables()
	self:NetworkVar( "Bool", 0, "On", { KeyName = "on", Edit = { type = "Bool" } } )
end
{'fraction_non_alphanumeric': 0.12840043525571274, 'fraction_numerical': 0.001088139281828074, 'mean_word_length': 2.4980988593155895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2752670', 'n_tokens_mistral': 318, 'n_tokens_neox': 314, 'n_words': 67}